<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <script type='text/javascript' src='http://localhost/wasaiwang/tshop/hdphp/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>
<link href='http://localhost/wasaiwang/tshop/hdphp/hdphp/../hdjs/css/hdjs.css' rel='stylesheet' media='screen'>
<script src='http://localhost/wasaiwang/tshop/hdphp/hdphp/../hdjs/js/hdjs.js'></script>
<script src='http://localhost/wasaiwang/tshop/hdphp/hdphp/../hdjs/js/slide.js'></script>
<script src='http://localhost/wasaiwang/tshop/hdphp/hdphp/../hdjs/org/cal/lhgcalendar.min.js'></script>
<script type='text/javascript'>
		HOST = 'http://localhost';
		ROOT = 'http://localhost/wasaiwang/tshop';
		WEB = 'http://localhost/wasaiwang/tshop/index.php';
		URL = 'http://localhost/wasaiwang/tshop/index.php/Admin/addGoodsType/index';
		HDPHP = 'http://localhost/wasaiwang/tshop/hdphp/hdphp';
		HDPHPDATA = 'http://localhost/wasaiwang/tshop/hdphp/hdphp/Data';
		HDPHPTPL = 'http://localhost/wasaiwang/tshop/hdphp/hdphp/Lib/Tpl';
		HDPHPEXTEND = 'http://localhost/wasaiwang/tshop/hdphp/hdphp/Extend';
		APP = 'http://localhost/wasaiwang/tshop/index.php/Admin';
		CONTROL = 'http://localhost/wasaiwang/tshop/index.php/Admin/AddGoodsType';
		METH = 'http://localhost/wasaiwang/tshop/index.php/Admin/AddGoodsType/index';
		GROUP = 'http://localhost/wasaiwang/tshop/Tan';
		TPL = 'http://localhost/wasaiwang/tshop/Tan/Shop/Admin/Tpl';
		CONTROLTPL = 'http://localhost/wasaiwang/tshop/Tan/Shop/Admin/Tpl/AddGoodsType';
		STATIC = 'http://localhost/wasaiwang/tshop/Static';
		PUBLIC = 'http://localhost/wasaiwang/tshop/Tan/Shop/Admin/Tpl/Public';
		HISTORY = 'http://localhost/wasaiwang/tshop/';
		HTTPREFERER = 'http://localhost/wasaiwang/tshop/';
</script>
    </head>
    <body>
		    <div class="wrap">
		    	<div class="menu_list">
		    		<ul>
		    			<li><a href="<?php echo U('index');?>" class="action">商品类型</a></li>
		    			<li><a href="<?php echo U('add');?>">添加类型</a></li>
		    			<li><a href="<?php echo U('updateCache');?>">更新缓存</a></li>
		    		</ul>
		    	</div>
		    	<table class="table2">
		    		<thead>
			    		<tr>
			    			<td class="w30">GTID</td>
			    			<td class="">类型名称</td>
			    			<td class="w150">操作类型</td>
			    			
			    		</tr>
		    		</thead>
		    		<tbody>
		    			<?php $hd["list"]["n"]["total"]=0;if(isset($data) && !empty($data)):$_id_n=0;$_index_n=0;$lastn=min(1000,count($data));
$hd["list"]["n"]["first"]=true;
$hd["list"]["n"]["last"]=false;
$_total_n=ceil($lastn/1);$hd["list"]["n"]["total"]=$_total_n;
$_data_n = array_slice($data,0,$lastn);
if(count($_data_n)==0):echo "";
else:
foreach($_data_n as $key=>$n):
if(($_id_n)%1==0):$_id_n++;else:$_id_n++;continue;endif;
$hd["list"]["n"]["index"]=++$_index_n;
if($_index_n>=$_total_n):$hd["list"]["n"]["last"]=true;endif;?>

		    			  <tr>
		    				<td class="w30"><?php echo $n['gtid'];?></td>
			    			<td class=""><?php echo $n['gtname'];?></td>
			    			<td class="w80">
			    				<a href="<?php echo U('update',array('gtid'=>$n['gtid']));?>">修改</a>
			    				<span class="line">|</span>
			    				<a href="javascript:hd_confirm('确证删除吗？',function(){hd_ajax( 'del', {gtid: <?php echo $n['gtid'];?>})})">删除</a>
			    				
			    				<span class="line">|</span>
                        <a href="<?php echo U('addGoodsAttr/index',array('gtid'=>$n['gtid']));?>">属性管理</a>
			    			</td>
                   </tr>
                <?php $hd["list"]["n"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
		    		</tbody>
		    	</table>
		    </div>
    </body>
</html>